﻿'use strict';

app.controller('articleDetailsController', function ($scope, $routeParams, articlesData) {
   // $scope.article = articlesData.getById($routeParams.id);

    articlesData.getById($routeParams.id).then(function (article) {
        $scope.article = article;
    });
});